package com.fixme4trade.business;

import java.util.List;

import javax.inject.Inject;
import org.slf4j.Logger;
import br.gov.frameworkdemoiselle.message.MessageContext;
import br.gov.frameworkdemoiselle.stereotype.BusinessController;
import br.gov.frameworkdemoiselle.template.DelegateCrud;

import com.fixme4trade.domain.Customer;
import com.fixme4trade.domain.Payment;
import com.fixme4trade.domain.Seller;
import com.fixme4trade.persistence.PaymentDAO;

@BusinessController
public class PaymentBC extends DelegateCrud<Payment, Long, PaymentDAO> {
	
	private static final long serialVersionUID = 1L;
	
	@Inject
	private Logger logger;
	
	@Inject
    private MessageContext messageContext;
			
	@Override
	public void insert(Payment p) {
		super.insert(p);
	}

	@Override
	public void update(Payment p) {
		super.update(p);
	}

	@Override
	public void delete(Long id) {
		super.delete(id);
	}
	
	public List<Payment> findByCustomer(Customer customer){
		return getDelegate().findByCustomer(customer);
	}
	
	public List<Payment> findBySeller(Seller seller){
		return getDelegate().findBySeller(seller);
	}
		
}
